package com.codeavatar.hardwaretester.activity.hardware.bluetooth;

import android.view.Menu;
import android.view.MenuItem;
import android.view.View;

import androidx.annotation.NonNull;

import com.codeavatar.catools.base.CaBaseActivity;
import com.codeavatar.catools.helper.CaActionBarHelper;
import com.codeavatar.hardwaretester.databinding.ActivityBluetoothAiboxBinding;
import com.codeavatar.hardwaretester.databinding.ActivityBluetoothPingpongTesterBinding;

/**
 * +----------------------------------------------------------------------
 * | @Author: codeavatar   @Year：2022
 * +----------------------------------------------------------------------
 * | @Email: codeavatar@aliyun.com
 * +----------------------------------------------------------------------
 **/
public class PingPongTesterActivity extends CaBaseActivity {

    private final String TAG = this.getClass().getSimpleName();

    private ActivityBluetoothPingpongTesterBinding mainBinding;

    //++++++++++++++++++++++++++++++++++++++
    //++ 内部方法
    //++++++++++++++++++++++++++++++++++++++


    //++++++++++++++++++++++++++++++++++++++
    //++ 重写方法
    //++++++++++++++++++++++++++++++++++++++

    @Override
    protected void initBinding() {
        mainBinding = ActivityBluetoothPingpongTesterBinding.inflate(getLayoutInflater());
    }

    @Override
    protected View getLayoutView() {
        return mainBinding.getRoot();
    }

    @Override
    protected void initNavigation() {
        CaActionBarHelper.init().toolbar(getSupportActionBar(),"PingPong测试");
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initEvent() {

    }

    @Override
    protected void initData() {

    }

    @Override
    public void onClick(View v) {

    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        return super.onCreateOptionsMenu(menu);
    }

    @Override
    public boolean onOptionsItemSelected(@NonNull MenuItem item) {
        int itemId = item.getItemId();
        if(android.R.id.home == itemId){
            this.finish();
        }else{
            return super.onOptionsItemSelected(item);
        }
        return true;
    }
}
